<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!-- view 层 模板-->
<div id="app">
    <button v-on:click="sayHi">click me</button>
</div>

<br>
<!--1.导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        //model :数据
        data: {
            message: "嗷嗷叫快递还结算单可能看"
        },
        methods: {
            //方法必须定义在vue的methods方法中 v-on:绑定实践
            sayHi: function () {
                alert(this.message)
            }
        }

    });
</script>
</body>
</html>
